<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/commons/taglibs.jsp"%>
<%@ include file="/static/commons/meta.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 	<title>${title }</title>
	<!--自定义index样式-->
	<link rel="stylesheet" href="${ctx }/static/styles/basic/basic.css" ></link>
	<link rel="stylesheet" href="${ctx }/static/styles/edit/box.css" ></link>
	<!--js库-->
	<%@ include file="/static/commons/jquery-easyui.jsp" %>
	<script type="text/javascript" src="${ctx}/static/scripts/set_select.js"></script>
	<script type="text/javascript" src="${ctx}/static/scripts/WdatePicker/WdatePicker.js"></script>
	<script type="text/javascript">
		var headers = {};
		headers['__RequestVerificationToken'] = "${RequestVerificationToken}";
	</script>

  </head>
  
  <body style="padding-bottom:8px;">
 		<c:set var="disabled" value=""></c:set>
 		<c:set var="ifSelect" value=""></c:set>
 		<c:if test="${not empty view}">
 			<c:set var="disabled" value="disabled"></c:set>
 			<c:set var="ifSelect" value="false"></c:set>
 		</c:if>
 		<form id="editForm" action="${ctx}/verfiy/save" method="post">
 			<input type="hidden" value="${obj.id}" id="id" name="p_id" />
 			<input type="hidden" value="${empty obj.status ? 1 : obj.status}" id="status" name="p_status" />
 			<div class="box">
  			<table>
  				<tbody>
					<tr>
						<td class="message">
							<p><span>*</span>编号：</p>
						</td>
						<td>
							<input type="text" id="verifyNo" name="p_verifyNo" value="${obj.verify_no }"
								class="wd170 " ${disabled } maxLength="20" style="width: 100%;" />
						</td>
					</tr>
					<tr>
						<td class="message">
							<p><span>*</span>名称：</p>
						</td>
						<td>
							<input type="text" id="verifyName" name="p_verifyName" value="${obj.verify_name }"
								class="wd170 " ${disabled } maxLength="20" style="width: 100%;" />
						</td>
					</tr>
					<tr>
						<td class="message">
							<p><span>*</span>有效期至：</p>
						</td>
						<td>
							<input type="text" id="validDate" name="p_validDate" value="${obj.valid_date_}"
								onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'%y-%M-%d',isShowClear:false,readOnly:true})" ${disabled } 
								class="wd170 Wdate" style="width: 100%;" />
						</td>
					</tr>
					<tr>
						<td class="message">
							<p><span>*</span>设备类型：</p>
						</td>
						<td>
							<vvise:select id="deviceType" name="p_deviceType" sqlname="getCodeData" sqlparam="device_type" 
		            			className="wd170" width="99%" defval="${obj.device_type}" ifSelect="${ifSelect}"
		            			onchange="changeSelect('${ctx}/common/getSelectOptions?sqlname=getDeviceName&sqlparam='+this.value, 'deviceId');"/>
						</td>
					</tr>
					<tr>
						<td class="message">
							<p>气体名称：</p>
						</td>
						<td>
							<vvise:select id="deviceId" name="p_deviceId" sqlname="getDeviceName" sqlparam="${empty obj.device_type ? 4 : obj.device_type}" 
	            				className="wd170" width="99%" defval="${obj.device_id_}" ifSelect="${ifSelect}"/>
						</td>
					</tr>
					<tr>
						<td class="message">
							<p>备注：</p>
						</td>
						<td>
							<input type="text" id="remark" name="p_remark" value="${obj.remark }" class="wd170 " ${disabled } maxLength="20" style="width: 100%;" />
						</td>
					</tr>
				</tbody>
  			</table>
  		</div>
       </form>
  </body>
</html>